﻿/*
 *
 * serial.h
 *
 *  Created on: 2017-08-03
 *      Author: chenshisheng
 */

#ifndef TOUCH_SERIAL_H_
#define TOUCH_SERIAL_H_

#include "main.h"

typedef void (* Serial_FrameInCallback_t)(const void *data, uint8_t size);

void Serial_Init(Serial_FrameInCallback_t cb);
void Serial_SendByte(uint8_t b);
void Serial_Send(const void *data, unsigned int size);

void Serial_RxIrs(void);
void Serial_OnFrameIn(void);
int8_t Serial_SendCompleted(void);

#endif /* TOUCH_SERIAL_H_ */
